package com.hqyj.ssm_project.service;

import com.hqyj.ssm_project.pojo.Application;
import com.hqyj.ssm_project.pojo.Approve;
import com.hqyj.ssm_project.pojo.Details;

import java.util.List;

public interface ApplicationService {
    void insert(Application application);

    void insertDetails(Details details);

    void createApprove(Approve approve);

    List<Application> selectByUserId(Integer id);

    Application selectAppdetailById(Integer applicationId);

    int updateCommitTime(Application application);


    List<Application> selectListToApproveByApproveUserId(Integer userId);

    void updateStatus(Details details);

    Approve selectApproveByapproveId(Integer approveId);

    void rejectApplication(Integer approveId);

    void approveApplication(Approve approve);

    void updateStatusByApproveId(Details details);
}


